import request from '@/utils/request'

// 查询探访记录列表
export function listVisitRecords(query) {
  return request({
    url: '/business/visitRecords/list',
    method: 'get',
    params: query
  })
}

// 查询探访记录详细
export function getVisitRecords(id) {
  return request({
    url: '/business/visitRecords/' + id,
    method: 'get'
  })
}

// 新增探访记录
export function addVisitRecords(data) {
  return request({
    url: '/business/visitRecords',
    method: 'post',
    data: data
  })
}

// 修改探访记录
export function updateVisitRecords(data) {
  return request({
    url: '/business/visitRecords',
    method: 'put',
    data: data
  })
}

// 删除探访记录
export function delVisitRecords(id) {
  return request({
    url: '/business/visitRecords/' + id,
    method: 'delete'
  })
}
